package edu.gdkm.mainStation;

import edu.gdkm.observer.billboard.CurrentConditionsDisplay;
import edu.gdkm.observer.billboard.StatisticDisplay;
import edu.gdkm.observer.impl.WeatherData;

public class WeatherStation {
    public static void main(String[] args) {

        WeatherData weatherData = new WeatherData();
        CurrentConditionsDisplay conditionsDisplay = new CurrentConditionsDisplay(weatherData);
        StatisticDisplay statisticDisplay = new StatisticDisplay(weatherData);
        weatherData.setMeasurements(80, 65, 39.4f);

        weatherData.removeObserver(conditionsDisplay);
        weatherData.setMeasurements(67, 55, 27.8f);
    }

}
